using System; 
using System.Collections.Generic; 
using System.Text;
using ActionTrackerEntities;
using FluentNHibernate.Mapping;

namespace ActionTrackerDAO.Mapeos
{
    public class ReunioneMap : ClassMap<Reunion> {
        
        public ReunioneMap() {
			Table("Reuniones");
			LazyLoad();
			Id(x => x.IdReunion).GeneratedBy.Identity().Column("IdReunion");
			Map(x => x.Descripcion).Column("Descripcion").Not.Nullable().Length(60);
            References(x => x.Proyecto).Column("IdProyecto").Not.Nullable();
			HasMany(x => x.Acciones).KeyColumn("IdReunion");
        }
    }
}
